package com.killer.edu.oauth.mult;

/**
 * 认证授权信息持有容器
 */
public class MultAuthenticationContext {

    private static ThreadLocal<MultAuthentication> holder = new ThreadLocal<MultAuthentication>();

    public static void set(MultAuthentication multAuthentication) {
        holder.set(multAuthentication);
    }

    public static MultAuthentication get(){
        return holder.get();
    }

    public static void clear(){
        holder.remove();
    }
}
